/**
 * 
 */
package com.nandasoft.njurep.substance.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nandasoft.njurep.substance.bean.WareStoreBean;
import com.nandasoft.njurep.substance.dao.WareStoreDao;
import com.nandasoft.njurep.substance.dao.WareStoreDetailDao;
import com.nandasoft.njurep.substance.service.WareStoreService;

/**
 * @author Administrator
 *
 */
@Service
public class WareStoreServiceImpl extends BaseService implements WareStoreService {
	
	
	@Autowired
	private WareStoreDao wareStoreDao;
	
	@Autowired
	private WareStoreDetailDao  wareStoreDetailDao;
	
	@Override
	public void insertWareStoreInfo(WareStoreBean bean) {
		// TODO Auto-generated method stub
		
		wareStoreDao.insertWareStoreInfo(bean);
/*		select to_char(sysdate,'YYYYMMDDHH24MISSff8') from dual;
		select to_char(systimestamp,'yyyymmddhh24missff8') from dual;*/
		if(bean.getWsdList() !=null && bean.getWsdList().size()>0){
			wareStoreDetailDao.insertWareStoreDetailInfo(bean.getWsdList());
		}
	}

	@Override
	public void updateWareStoreInfo(WareStoreBean bean) {
		// TODO Auto-generated method stub
		
		
		
	}

	@Override
	public void delWareStoreInfo(WareStoreBean bean) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<WareStoreBean> getWareStoreList(WareStoreBean bean) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<WareStoreBean> getWareStorePageList(WareStoreBean bean) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public WareStoreBean getWareStoreInfo(WareStoreBean bean) {
		// TODO Auto-generated method stub
		return null;
	}

	public WareStoreDao getWareStoreDao() {
		return wareStoreDao;
	}

	public void setWareStoreDao(WareStoreDao wareStoreDao) {
		this.wareStoreDao = wareStoreDao;
	}

	/**
	 * @return the wareStoreDetailDao
	 */
	public WareStoreDetailDao getWareStoreDetailDao() {
		return wareStoreDetailDao;
	}

	/**
	 * @param wareStoreDetailDao the wareStoreDetailDao to set
	 */
	public void setWareStoreDetailDao(WareStoreDetailDao wareStoreDetailDao) {
		this.wareStoreDetailDao = wareStoreDetailDao;
	}
}
